package com.cy.service;

import com.cy.vo.CartVO;

import java.util.List;

public interface ICartService {
    /**
     *商品添加到购物车
     * @param uid
     * @param pid
     * @param amount
     * @param username
     */
    void addToCart(Integer uid,Integer pid,Integer amount,
                   String username);


   List<CartVO> getVOByUid(Integer uid);

    /**
     * 更新用户购物车数量放回新数量
     * @param cid
     * @param uid
     * @param username
     * @return
     */
   Integer addNum(Integer cid,Integer uid,String username);

    List<CartVO> getVOByCid(Integer uid,Integer[] cids);


}
